package ch3;

public class Calculator {
    String brand;
    String colour;
    float price;
    public double add(double a,double b){
        return a+b;
    }
    public double subtract(double a,double b){
        return a-b;
    }
    public double multiply(double a,double b){
        return a*b;
    }
    public double divide(double a,double b){
        return a/b;
    }
    public double cube(double a) {
        return a * a * a;
    }
}
